package com.woniuxy.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.mapper.MaintainMapper;
import com.woniuxy.pojo.Maintain;
import com.woniuxy.service.MaintainService;

import lombok.Data;

@Data
@Service
public class MaintainServiceImp implements MaintainService {
	@Resource
	private MaintainMapper maintainMapper;

	@Override
	public List<Maintain> findMaintainById(int house_id) {
		return maintainMapper.findMaintainById(house_id);
	}

	@Override
	public int add(Maintain maintain) {
		return maintainMapper.add(maintain);
	}

	@Override
	public int UpdateStateByMaintainId(int maintain_id) {
		return maintainMapper.UpdateStateByMaintainId(maintain_id);
	}

}
